<template>
  <el-carousel :interval="4000" type="card" height="400px" :motion-blur="true">
    <el-carousel-item v-for="item in 6" :key="item">
      <img :src="`/images/${item}.jpg`" alt="Image Carousel" />
    </el-carousel-item>
  </el-carousel>
</template>
  
<script setup>

</script>
  
<style scoped lang="scss">
.el-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 确保图片填充整个容器，避免变形 */
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

</style>